package com.ysy.tz.mfg.dao;

import com.ysy.tz.mfg.entity.UserEntity;
import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao {
    ArrayList<UserEntity> listForPage(UserEntity var1) throws Exception;

    UserEntity searchUserWithCode(@Param("userCode") String var1) throws Exception;

    int save(UserEntity var1) throws Exception;

    UserEntity isExistUserCode(@Param("userCode") String var1, @Param("enterpriseID") String var2, @Param("userId") int var3) throws Exception;

    Long isExistUserName(@Param("enterpriseId") int var1, @Param("userName") String var2) throws Exception;

    UserEntity getExistUserName(@Param("enterpriseId") String var1, @Param("userName") String var2) throws Exception;

    int batchRemoveUser(@Param("enterpriseID") String var1, @Param("userIdList") List<Integer> var2) throws Exception;

    int disableOrEnableUser(@Param("userId") Integer var1, @Param("isEnabled") String var2, @Param("enterpriseId") String var3) throws Exception;

    UserEntity getSingleUser(@Param("userId") Integer var1, @Param("enterpriseId") String var2) throws Exception;

    ArrayList<UserEntity> getPublicUserList(UserEntity var1) throws Exception;

    List<UserEntity> fastUserInfo(@Param("enterpriseID") String var1, @Param("keyword") String var2, @Param("orgCode") String var3) throws Exception;

    int updateUser(UserEntity var1) throws Exception;

    String getRoleCode(@Param("enterpriseId") Integer var1, @Param("userId") Integer var2) throws Exception;

    String getUserCode(@Param("enterpriseId") Integer var1, @Param("userId") Integer var2) throws Exception;

    int validatePwd(UserEntity var1);
}
